﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using HsTec.Mobile.Green.BLL;
using HsTec.Mobile.Green.Model;
using System.Web.UI.HtmlControls;

public partial class ProjectManage_SingleProject_Edit : System.Web.UI.Page
{
    private string sid = String.Empty;
    SingleProjectBLL bll = new SingleProjectBLL();
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            sid = this.Request.QueryString["id"].ToString().Trim();
        }
        catch
        {

        }
        if (!IsPostBack)
        {
        }
    }
    protected void btnAdd_Click(object sender, EventArgs e)
    {
        SingleProject sp = new SingleProject();
        txtspno.Text = sp.spno;
        txtspname.Text = sp.spname;
        txtfix.Text = sp.fix;
        string chk = String.Empty;
        for (int i = 1; i <= 25; i++)
        {
            HtmlInputCheckBox cb = (HtmlInputCheckBox)this.FindControl("CheckBox" + i);
            if (cb.Checked)
            {
                chk = String.IsNullOrEmpty(chk) ? i.ToString() : "," + i.ToString();
            }
        }
        txtperson.Text = sp.person.ToString();
        txtdesigner.Text = sp.designer.ToString();
        txtproofreader.Text = sp.proofreader.ToString();
        txtreviewer.Text = sp.reviewer.ToString();
        txtcharger.Text = sp.charger.ToString();
        txthead.Text = sp.head.ToString();
        txtbranchreviewer.Text = sp.branchreviewer.ToString();
        txtStandardization.Text = sp.Standardization.ToString();
        txtInvestment.Text = sp.Investment.ToString();
        txtprojectcost.Text = sp.projectcost.ToString();
        txtdesignfees.Text = sp.designfees.ToString();
        txtaccessories.Text = sp.accessories.ToString();
    }
}
